package com.thinkgem.jeesite.common.listener.order;

import java.util.TimerTask;

import javax.servlet.ServletContextEvent;

/**
* 时间任务器
*
* @author xiaoqun.yi
*/
class SystemTask extends TimerTask {
	public ServletContextEvent sce;
	public SystemTask(ServletContextEvent sce) {
		this.sce = sce;
	}
	/**
	　* 把要定时执行的任务就在run中
	*/
	@Override
	public void run() {
		try {
			OrderManager etf = new OrderManager(sce);
			etf.run();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
